<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:72:"E:\WWW\huzhanwang.cc\public/../application/admin\view\notice\update.html";i:1668046898;}*/ ?>
<!DOCTYPE html>

<html>

<head>

  <meta charset="utf-8">

  <title>添加</title>

  <meta name="renderer" content="webkit">

  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">

  <link rel="stylesheet" href="/static/admin/layuiadmin/layui/css/layui.css" media="all">
  <script type="text/javascript" src="/static/admin/js/jquery-1.8.3.min.js"></script>
</head>

<body>


<form>
  <div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin" style="padding: 20px">

    <div class="layui-form-item">

      <label class="layui-form-label">标题</label>

      <div class="layui-input-block">

        <input type="text" name="title" lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input" value="<?php echo $data['title']; ?>">

      </div>

    </div>
    
    <div class="layui-form-item" lay-filter="sex">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">
          <input type="radio" name="status" value="1" title="展示" <?php echo $data['status']==1?'checked':''; ?>>
          <input type="radio" name="status" value="2" title="隐藏" <?php echo $data['status']==2?'checked':''; ?>>
        </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">内容</label>
      <div class="layui-input-block">
        <textarea name="content" id="content"  placeholder="请输入内容内容"   class="layui-textarea" style="height: 600px;width:100%;"><?php echo $data['content']; ?></textarea>
      </div>
    </div>
    <div class="layui-form-item">

      <div class="layui-form-item layui-hide">

          <input type="button" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-front-submit" value="确认">

      </div>

    </div>

</form>
  <script src="/static/admin/layuiadmin/layui/layui.js"></script>  

  <script>

  layui.config({

    base: '/static/admin/layuiadmin/' //静态资源所在路径

  }).extend({

    index: 'lib/index' //主入口模块

  }).use(['index', 'form', 'upload'], function(){

    var $ = layui.$

    ,form = layui.form

    ,upload = layui.upload ;

    Array.prototype.indexOf = function(val) { 
      for (var i = 0; i < this.length; i++) { 
      if (this[i] == val) return i; 
      } 
      return -1; 
    };
    Array.prototype.remove = function(val) { 
      var index = this.indexOf(val); 
      if (index > -1) { 
      this.splice(index, 1); 
      } 
    };
  })

  </script>
   <!-- 编辑器调用;必须包在<form>里面才能获取到富文本内容 -->

<script type="text/javascript" charset="utf-8" src="/static/admin/ueditor/ueditor.config.js"></script>

<script type="text/javascript" charset="utf-8" src="/static/admin/ueditor/ueditor.all.js"></script>

<script type="text/javascript" charset="utf-8" src="/static/admin/ueditor/lang/zh-cn/zh-cn.js"></script>

<script type="text/javascript">

    // var ue = UE.getEditor('content',{ zIndex: 10});
        var ue = UE.getEditor('desc',{ zIndex: 10});
        var ue1 = UE.getEditor('content',{ zIndex: 10});



</script>
</body>

</html>